package ${org}.${project}.common.dao;

import java.util.List;
import ${org}.${project}.common.model.GridResponse;
import ${org}.${project}.common.model.${modelName?cap_first};

/**
 * 
 * @author CodeGen
 *
 */
public interface ${modelName?cap_first}Dao {
	
	/**
	 * 添加${modelComment !}
	 * 
	 * @param ${modelName?uncap_first}
	 */
	void insert(${modelName?cap_first} ${modelName?uncap_first}) throws Exception;
	/**
	 * 删除${modelComment !}
	 * 
	 * @param id
	 */
	void deleteById(String id) throws Exception;
	
	/**
	 * 修改${modelComment !}
	 * 
	 * @param id
	 */
	void updateById(String id) throws Exception;
	
	
	/**
	 * 分页查询${modelComment !}
	 *
	 * @param ${modelName?uncap_first}
	 * @return
	 */
	GridResponse<${modelName?cap_first}> getPage(${modelName?cap_first} ${modelName?uncap_first}) throws Exception;

   /**
	* 查询总数
	*
	* @param ${modelName?uncap_first}
	* @return
	*/
	int getCount(${modelName?cap_first} ${modelName?uncap_first}) throws Exception;
	/**
	 * 查询${modelComment !}
	 * 
	 * @param id
	 * @return
	 */
	${modelName?cap_first} findById(String id) throws Exception;
}